$(document).ready(function(){
	//单个图片点击浏览
	$('img.view').on('click',function(){
		$.colorbox({href:$(this).attr('src'),maxHeight:'98%',opacity:'0.3',title:'图片浏览',maxWidth:'98%'});
		return false;
	});
	//图片列表放大浏览
	$("a.view").colorbox({rel:"show", transition:"slide", opacity:'0.3',current:'', maxHeight:'97%', maxWidth:'87%', fixed:true});
	//iframe
	$('.iframe').on('click',function(){
		$.colorbox({
			iframe:true,
			href:$(this).attr('href'),
			title:$(this).attr('title')?$(this).attr('title'):$(this).text(),
			opacity:'0.3',
			overlayClose: false,
			width:$(this).attr('width')?$(this).attr('width'):'1000px',
			height:$(this).attr('height')?$(this).attr('height'):'700px',
			maxHeight:'95%',
			maxWidth:'95%',
			fixed:true
		});
		return false;
	});
});